package com.wjp.villagemp.mapper.manage;

import com.wjp.villagemp.model.manage.ScoreEntity;
import com.wjp.villagemp.utils.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: Jacob
 * @Date: 2019/1/28 15:53
 * @Description:
 */
@Mapper
public interface ScoreMapper extends MyMapper<ScoreEntity> {
    List<Map<String, Object>> listScore(@Param("pageSize") int pageSize, @Param("start") int start, @Param("studentNum") int studentNum, @Param("courseNum") int courseNum);

    Integer countScore(@Param("studentNum") int studentNum, @Param("courseNum") int courseNum);

    List<Map<String,Object>> resultList(@Param("pageSize") int pageSize, @Param("start") int start, @Param("sortField") String sortField, @Param("direction") String direction);
}
